import Vue from 'vue'
import VueRouter from 'vue-router'
import Emp from '../views/Emp.vue'
import Dept from '../views/Dept.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/emp',
    name: 'Emp',
    component: Emp
  },
  {
    path: '/dept',
    name: 'Dept',
    component: Dept
  }
]

const router = new VueRouter({
  routes
})

export default router
